package ressourceImpl;

/**
 * 
 * @modelguid {2BE2DA96-0BAA-493F-91BE-1A527C47BAC9}
 */
public class RessourceImpl {
	/**
	 * 
	 * @modelguid {00A41CCB-7DE1-4A6A-A773-DE18C53028DF}
	 */
	private String _nom;

	/**
	 * 
	 * @modelguid {109F837B-38E1-40C3-8A07-8487EA944E8A}
	 */
	private int _coeffProd;

	/**
	 * 
	 * @modelguid {95E2178E-C3FC-43DC-8719-B9B33DEB2905}
	 */
	private int _coeffDestruction;

	public RessourceImpl(String n, int coef_p, int coef_d) {
		this.set_coeffDestruction(coef_d);
		this.set_coeffProd(coef_p);
		this.set_nom(n);
		RessourceManager.addRess(this);
	}

	/** @modelguid {1AB0E014-CE8B-438C-A61E-5406C63E701A} */
	public String get_nom() {
		/* Begin Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5} */

		return _nom;
		/* End Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5} */
	}

	/** @modelguid {B3C2C75D-9AF3-4238-9D51-A21BD9518B62} */
	public void set_nom(String a_nom) {
		/* Begin Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5} */
		_nom = a_nom;
		/* End Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5} */
	}

	/** @modelguid {F2B90B9D-0C9E-44EB-A2DB-A603D58B1201} */
	public int get_coeffProd() {
		/* Begin Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5} */

		return _coeffProd;
		/* End Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5} */
	}

	/** @modelguid {68C9B63A-D1B9-418B-A6AF-CEB14B38E5DB} */
	public void set_coeffProd(int a_coeffProd) {
		/* Begin Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5} */
		_coeffProd = a_coeffProd;
		/* End Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5} */
	}

	/** @modelguid {4230646C-77EC-45E0-B191-08D135E1B0EB} */
	public int get_coeffDestruction() {
		/* Begin Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5} */

		return _coeffDestruction;
		/* End Template Expansion{D463887C-0F96-42C1-B8DC-90E8DC272BD5} */
	}

	/** @modelguid {AA5C9748-EE4F-46B6-BA93-2390A2DF0DDF} */
	public void set_coeffDestruction(int a_coeffDestruction) {
		/* Begin Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5} */
		_coeffDestruction = a_coeffDestruction;
		/* End Template Expansion{CA3F77E8-8B8B-47C4-A1B8-CE1F21AEAEA5} */
	}

	public boolean equals(RessourceImpl r) {
		return ((this.get_coeffProd() == r.get_coeffProd())
				&& (this.get_coeffDestruction() == r.get_coeffDestruction()) && (this
				.get_nom() == r.get_nom()));
	}

}
